package core;

public class CommonUtil {

	public static String getSession(long receiver, long sender) {
		String s_r = "user#" + receiver + '#' + sender;
		String session = MD5Util.encodeByMD5(s_r);
		return session;
	}
	
	public static String getGroupSession(long receiver, long gid) {
		String s_g = "group#" + receiver + '#' + gid;
		String session = MD5Util.encodeByMD5(s_g);
		
		return session;
	}
}
